import request from "@/utils/request.js";
import utils from "@/utils/utils.js"

export default {
	// 我的寄卖历史
	getMyResells(params) {
		return request({
			url: 'system/jm/my/list',
			method: 'get',
			data: params
		})
	},
	// 我可以寄卖的商品
	getMyCanResells(params) {
		return request({
			url: 'system/jm/list',
			method: 'get',
			data: params
		})
	},
	// 申请寄卖
	applyResells(params) {
		return request({
			url: 'system/jm',
			method: 'post',
			data: params
		})
	},
	// 取消寄卖
	cancelResells(params) {
		return request({
			url: 'system/jm',
			method: 'put',
			data: params
		})
	}
}
